import request from '@/router/axios'

export function getStudentFilingRate(query) {
  return request({
    url: '/pvm/student/statisticalResultsOfFilingRate',
    method: 'get',
    params: query
  })
}

export function getDetailByCheckNot(query){
  return request({
    url: '/pvm/student/getInfoLackStudentByCheckDate',
    method: 'get',
    params: query
  })
}

export function getDetailByOptoNot(query){
  return request({
    url: '/pvm/student/getInfoLackStudentByOptometry',
    method: 'get',
    params: query
  })
}

export function getDetailByAllStudent(query){
  return request({
    url: '/pvm/student/getInfoClassAllStudent',
    method: 'get',
    params: query
  })
}

// 导出建档统计结果
export function getCheckExport(query) {
  return request({
    url: '/pvm/student/getStatisticalResultsOfFilingRateExport/excel',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}

// 导出建档详情信息
export function getCheckDetailExport(query) {
  return request({
    url: '/pvm/student/getStatisticalStudentInfoExport/excel',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}

// 导出学生档案列表
export function getStudentCheckDetailExport(query) {
  return request({
    url: '/pvm/student/getStudentInfoExport/excel',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}
// 获取当前学年

export function getCurrentYear() {
  return request({
    url: '/admin/dict/getCurrentYear',
    method: 'get'
  })
}
